# $Id: pkgIndex.tcl 43 2007-09-01 00:31:58Z khomoutov $

package ifneeded dccore 0.1 [string map [list \$dir [file join $dir dccore]] {
	source [file join $dir utils.tcl]
	source [file join $dir debug.tcl]
	source [file join $dir hooks.tcl]
	source [file join $dir dccore.tcl]

	package provide dccore 0.1
}]

package ifneeded dcclient 0.1 [string map [list \$dir [file join $dir dcclient]] {
	package require dccore 0.1

	source [file join $dir core.tcl]
	source [file join $dir udp.tcl]
	source [file join $dir c2s.tcl]
	source [file join $dir c2c.tcl]
	source [file join $dir debug.tcl]

	package provide dcclient 0.1
}]

package ifneeded dcshare 0.1 [string map [list \$dir [file join $dir dcshare]] {
	package require dccore 0.1

	namespace eval ::dcshare {
		namespace import ::dccore::*

		source [file join $dir sqlite.tcl]
		source [file join $dir filetypes.tcl]
		source [file join $dir db.tcl]
	}

	package provide dcshare 0.1
}]
